%%%-------------------------------------------------------------------
%% @doc himq public API
%% @end
%%%-------------------------------------------------------------------

-module(himq_app).
-behaviour(application).
-export([start/2, stop/1]).
-include("himq.hrl").


start(_StartType, _StartArgs) ->
  application:ensure_started(ranch),
  himq_eenv:load(himq),
  himq_mnesia:init(),
  Pid = himq_sup:start_link(),
  himq_mqtt:start_server([]),
  himq_admin:start_admin(),
  Pid.
stop(_State) ->

  ok.


%% internal functions


